// gcd.c
#include "YemuEnv.h"

unsigned long gcd(unsigned long a, unsigned long b) {
    YemuPrint("a = %lu, b = %lu\n", a, b);  
    unsigned long res = 0;
    if(b == 0) res = a;
    else res = gcd(b, a % b);
    YemuPrint("a = %lu, b = %lu\n", a, b);    
    return res;
}